import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/admin/project-list',
    method: 'post',
    data: data,
  })
}

export function save(data) {
  return request({
    url: '/admin/project-edit',
    method: 'post',
    data: data,
  })
}

export function set(data) {
  return request({
    url: '/admin/project-enable',
    method: 'post',
    data: data,
  })
}

export function enableProject(data) {
  return request({
    url: '/admin/project-all',
    method: 'post',
    data: data,
  })
}
